package io.renren.roomManager.service.impl;

import cn.lingyueblog.common.utils.PageUtils;
import cn.lingyueblog.common.utils.Query;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.roomManager.dao.FacultiesDao;
import io.renren.roomManager.entity.FacultiesEntity;
import io.renren.roomManager.service.FacultiesService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("facultiesService")
public class FacultiesServiceImpl extends ServiceImpl<FacultiesDao, FacultiesEntity> implements FacultiesService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<FacultiesEntity> page = this.page(
                new Query<FacultiesEntity>().getPage(params),
                new QueryWrapper<FacultiesEntity>()
        );

        return new PageUtils(page);
    }

}